<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <button onclick="test()">Go</button>
    <script>
        
        let accessToken = 'eyJ1c2VyIjp7Im5hbWUiOiJjYXN0ZXIiLCJpZCI6IjEifSwiYWdlbnQiOiJicm93c2VyIiwidmFsaWR0aW1lIjoxNTI3OTI5MjAxfQ==@d98db1b07e0642b5bcc6d342787f77de2d7ed77d8650d15bd4b572f557b22564';
        let ws = new WebSocket(`ws://127.0.0.1:3000?accessToken=${accessToken}`);
        // let ws = new WebSocket(`ws://127.0.0.1:3000?accessToken=`);

        function test() {
            let msg = ['basic', 'send', {
                sendTo: '1',
                content: 'world'
            }];
            ws.send(JSON.stringify(msg));
            // ws.send('["wwdc18", "jdwj/=e"');
		}
    </script>
</body>
</html>